//
//  Contact.m
//  OC_数字,字典复习
//
//  Created by dllo on 15/12/7.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact

- (instancetype)initWithName:(NSString *)name
                 phoneNumber:(NSString *)phoneNumber {
    self = [super init];
    if (self) {
        self.name = name;
        self.phoneNumber = phoneNumber;
        
        /** 组名赋值 */
        self.group = [[name substringToIndex:1] uppercaseString];
        
    }
    return self;
}












@end
